/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-09-11
 * Time:20:07
 */
//类的定义->创建类
//大驼峰
//成员前统一用public
class Student{
    public String name;
    public String gender;
}
//一个文件只能定义一个类


public class test {
    public int year=1;
    //构造方法
    //名字和类名相同，没有返回值
    //一般情况下使用public修饰
    public test(int year){
        this.year=year;


    }
    public static void main(String[] args) {
        Student s=new Student();
        s.name="dsa";
        s.gender="dsa";
    }



}
